Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable v2_dev flag #196

Merged
merged 3 commits into from
Sep 1, 2023
Merged

Conversation

MichaelDeBoey
Copy link
Member

No description provided.

Copy link
Contributor

@pcattori pcattori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, looks like typechecking is failing on top-level await in server.ts

package.json Outdated Show resolved Hide resolved
package.json Outdated
@@ -6,10 +6,8 @@
"build": "run-s build:*",
"build:remix": "remix build",
"build:server": "esbuild --platform=node --format=cjs ./server.ts --outdir=build --bundle",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pcattori Do we still need to build the server like this?
I guess we mainly did it to be used in the dev script 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still needed as this repo authors the custom server in TS and does not use remix.config.js's server field to compile the custom server.

Copy link
Member Author

@MichaelDeBoey MichaelDeBoey Sep 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pcattori Should we use remix.config.js instead?

server.ts Outdated

const BUILD_PATH = path.join(process.cwd(), "build", "index.js");
/** @type { import('@remix-run/node').ServerBuild | Promise<import('@remix-run/node').ServerBuild> } */
let build = await import(BUILD_PATH);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Top level await is failing with following TS error

@pcattori Not sure what the right way would be as we're still officially supporting Node 14

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now I just wrapped this in a async function run() {...}

@MichaelDeBoey MichaelDeBoey force-pushed the enable-v2_dev-flag branch 5 times, most recently from b74d156 to 88d8d8f Compare July 8, 2023 10:10
@brophdawg11 brophdawg11 removed their request for review August 2, 2023 15:50
@pcattori pcattori merged commit 19f6083 into remix-run:main Sep 1, 2023
6 checks passed
@MichaelDeBoey MichaelDeBoey deleted the enable-v2_dev-flag branch September 2, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants